import request from "@/utils/request";

// 获取用户信息
export function getUserInfo() { 
    return request({
        url: "/employee",
        method: "get"
    });
}

// 修改用户信息
export function updateUserInfo(param) { 
    return request({
        url: "/employee/update",
        method: "put",
        data: param
    });
}
// 上传头像
export function uploadAvatar(formData) { 
    return request({
        url: "/uploadFile",
        method: "post",
        data: formData,
        headers: {
            'Content-Type': 'multipart/form-data'
        }
    });
}

// 修改密码
export function updatePassword(param) { 
    return request({
        url: "/employee/updatePwd",
        method: "put",
        data: param
    });
}